const path = require('path');
const CopyWebpackPlugin = require("copy-webpack-plugin");
const config = require("./webpack.base.config");

// 拷贝文件
const copyPlugin = new CopyWebpackPlugin([
    {
        from: __dirname + '/html-template/index.html',
        to: __dirname + '/dist/release/index.html'
    }
]);

config.plugins.push(copyPlugin);

config.output.path = path.join(__dirname, "dist/release");

module.exports = config;